package model

type Students struct {
	SID          string `json:"UserId"`
	SNAME        string `json:"sname"`
	SSEX         string `json:"ssex"`
	CLASS_NAME   string `json:"class_name"`
	S_PASSWORD   string `json:"Password"`
	MAJOR_NAME   string `json:"major_name"`
	COLLEGE_NAME string `json:"college_name"`
	GRADE        string `json:"grade"`
	STYPE        string `json:"Stype"`
}

//type students struct {
//	SID          pgtype.Varchar `gorm:"primary_key"`
//	SNAME        pgtype.Varchar `gorm:"column:sname;type:varchar(15);index:SNAME"`
//	SSEX         pgtype.Varchar `gorm:"column:ssex;type:varchar(4);index:SSEX"`
//	CLASS_NAME   pgtype.Varchar `gorm:"column:class_name;type:varchar(255);index:CLASS_NAME"`
//	S_PASSWORD   pgtype.Varchar `gorm:"column:s_password;type:varchar(20);index:S_PASSWORD"`
//	MAJOR_NAME   pgtype.Varchar `gorm:"column:major_name;type:varchar;index:MAJOR_NAME"`
//	COLLEGE_NAME pgtype.Varchar `gorm:"column:college_name;type:varchar;index:COLLEGE_NAME"`
//	GRADE        pgtype.Varchar `gorm:"column:grade;type:varchar;index:GRADE"`
//	STYPE        pgtype.Varchar `gorm:"column:stype;type:varchar;index:STYPE"`
//}
